<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 7/25/17
 * Time: 12:54 PM
 */

namespace workin\modules\test\controllers;


use workin\modules\test\models\Test;
use yii\web\Controller;

class TestController extends Controller
{
    public function actionTest()
    {
        $test = new Test();
        $test->on($test::EVENT_TEST, [$test, 'test1']);
        $test->test();
    }
}